home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Misc / RZToDoList / Source / ToDoMatrix.m < prev    next >
Encoding:
Text File  |  1995-06-12  |  560 b   |  30 lines

  1. /* 
  2.  * ToDoMatrix
  3.  *
  4.  * You may freely copy, distribute and reuse the code in this example.
  5.  * This code is provided AS IS without warranty of any kind, expressed 
  6.  * or implied, as to its fitness for any particular use.
  7.  *
  8.  * Copyright 1995 Ralph Zazula (rzazula@next.com).  All Rights Reserved.
  9.  *
  10.  */
  11.  
  12. #import "ToDoMatrix.h"
  13.  
  14. @implementation ToDoMatrix
  15.  
  16. - mouseDown:(NXEvent *)theEvent
  17. {
  18.     if ([window makeFirstResponder:window]) {
  19.             [window endEditingFor:nil];
  20.     }
  21.     return [super mouseDown:theEvent];
  22. }
  23.  
  24. - (BOOL)acceptsFirstResponder
  25. {
  26.     return YES;
  27. }
  28.  
  29. @end
  30.